package com.zy.aiLocation.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zy.common.annotation.Excel;
import com.zy.common.core.domain.BaseEntity;

/**
 * 房屋管理对象 tb_houses
 * 
 * @author 张瑶
 * @date 2025-01-26
 */
public class House extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识，主键自增 */
    private Long id;

    /** 房屋地址 */
    @Excel(name = "房屋地址")
    private String address;

    /** 商铺类型 */
    @Excel(name = "商铺类型")
    private Long typeId;

    /** 租金 */
    @Excel(name = "租金")
    private BigDecimal rent;

    /** 面积 */
    @Excel(name = "面积")
    private BigDecimal area;

    /** 状态，待出租、已出租 */
    @Excel(name = "状态，待出租、已出租")
    private String status;

    /** 房东ID，关联房东表的id */
    @Excel(name = "房东ID，关联房东表的id")
    private Long landlordId;

    /** 租户ID，关联租户表的id，可为空 */
    @Excel(name = "租户ID，关联租户表的id，可为空")
    private Long tenantId;

    /** 经度 */
    @Excel(name = "经度")
    private String longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private String latitude;

    /** 图片ID，关联图片表的id，可为空 */
    @Excel(name = "图片ID，关联图片表的id，可为空")
    private String imageUrl;

    /** 房东姓名 */
    private String landlordName;

    /** 租户姓名 */
    private String tenantName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setRent(BigDecimal rent) 
    {
        this.rent = rent;
    }

    public BigDecimal getRent() 
    {
        return rent;
    }
    public void setArea(BigDecimal area) 
    {
        this.area = area;
    }

    public BigDecimal getArea() 
    {
        return area;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setLandlordId(Long landlordId) 
    {
        this.landlordId = landlordId;
    }

    public Long getLandlordId() 
    {
        return landlordId;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setLongitude(String longitude) 
    {
        this.longitude = longitude;
    }

    public String getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(String latitude) 
    {
        this.latitude = latitude;
    }

    public String getLatitude() 
    {
        return latitude;
    }
    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }

    public String getLandlordName() {return landlordName;}
    public void setLandlordName(String landlordName) {this.landlordName = landlordName;}

    public String getTenantName() {return tenantName;}
    public void setTenantName(String tenantName) {this.tenantName = tenantName;}

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("address", getAddress())
            .append("typeId", getTypeId())
            .append("rent", getRent())
            .append("area", getArea())
            .append("status", getStatus())
            .append("landlordId", getLandlordId())
            .append("tenantId", getTenantId())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("imageId", getImageUrl())
                .append("landlordName",getLandlordName())
                .append("tenantName",getTenantName())
            .toString();
    }
}
